package com.dfbz.springboot_mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User {
    private Long id;

    @TableField(condition = SqlCondition.LIKE_RIGHT)
    private String name;

    @TableField(condition = "%s&lt;#{%s}")
    private  Integer age;

    private String email;

    private Long managerId;

    @TableField("create_time")
    private LocalDateTime createTime;
}
